package com.lenovo.testreport.user.mapper;

import com.lenovo.testreport.user.model.MessageCenter;
import com.lenovo.testreport.user.model.MessageCenterExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CJF
 * @date 2018/10
 */
@Mapper
public interface MessageCenterMapper {
    long countByExample(MessageCenterExample example);

    int deleteByExample(MessageCenterExample example);

    int deleteByPrimaryKey(Long mid);

    int insert(MessageCenter record);

    int insertSelective(MessageCenter record);

    List<MessageCenter> selectByExampleWithBLOBs(MessageCenterExample example);

    List<MessageCenter> selectByExample(MessageCenterExample example);

    MessageCenter selectByPrimaryKey(Long mid);

    int updateByExampleSelective(@Param("record") MessageCenter record, @Param("example") MessageCenterExample example);

    int updateByExampleWithBLOBs(@Param("record") MessageCenter record, @Param("example") MessageCenterExample example);

    int updateByExample(@Param("record") MessageCenter record, @Param("example") MessageCenterExample example);

    int updateByPrimaryKeySelective(MessageCenter record);

    int updateByPrimaryKeyWithBLOBs(MessageCenter record);

    int updateByPrimaryKey(MessageCenter record);

    List<MessageCenter> selectAll();

    List<MessageCenter> selectByType(String type);
}